var stu = {
    name:'小明',
    age:'18',
    sex:'男'
};
stu
for (var k in stu){
    console.log(k + '---' + stu[k]);
}